<?php

namespace App\Modules\System\Controllers;

use App\Modules\System\Services\SystemService;
use Flower\Core\Http\BaseController;
use Illuminate\Http\Request;
use Illuminate\Http\Response;

class SystemController extends BaseController
{
	private $systemService;
	public function __construct(SystemService $systemService)
	{
		$this->systemService = $systemService;

	}

	public function getRoleList(Request $request){
		$roleList = $this->systemService->getRoleList();
		return $this->display($roleList);
	}

    /**
     * Display a listing of the resource.
     * @return Response
     */
    public function index()
    {
        return view('system::index');
    }

    /**
     * Show the form for creating a new resource.
     * @return Response
     */
    public function create()
    {
        return view('system::create');
    }

    /**
     * Store a newly created resource in storage.
     * @param Request $request
     * @return Response
     */
    public function store(Request $request)
    {
        //
    }

    /**
     * Show the specified resource.
     * @param int $id
     * @return Response
     */
    public function show($id)
    {
        return view('system::show');
    }

    /**
     * Show the form for editing the specified resource.
     * @param int $id
     * @return Response
     */
    public function edit($id)
    {
        return view('system::edit');
    }

    /**
     * Update the specified resource in storage.
     * @param Request $request
     * @param int $id
     * @return Response
     */
    public function update(Request $request, $id)
    {
        //
    }

    /**
     * Remove the specified resource from storage.
     * @param int $id
     * @return Response
     */
    public function destroy($id)
    {
        //
    }


}
